#ifndef DLL_VECTOR2_H
#define DLL_VECTOR2_H

#include "bbAddon.h"

/* Vector2 */

class vector2
{
	float _x,_y;

public :
	vector2();
	vector2(const float x,const float y):_x(x),_y(y){};
	~vector2();
	const bool operator != (vector2* v);
	const float operator * (vector2* v);
	vector2* operator + (vector2* v);
	vector2* operator - (vector2* v);
	void operator * (const float f);
	void operator + (const float f);
	void operator - (const float f);
	inline void set(const float x, const float y){_x=x;_y=y;};
	inline void setx(const float x){_x=x;};
	inline void sety(const float y){_y=y;};
	inline const float x(){return _x;};
	inline const float y(){return _y;;};
	inline const float norm();
	inline const float norm2();
	inline const float dot(vector2* v2);
	inline const float cross(vector2* v2);
	inline void normalize();
	inline void normalize_();
	inline const float angle(vector2* v2);

};

/* Vector3 */
class vector3
{
	
};

#endif //DLL_VECTOR2_H